<template>
    <div class="oa-tag" @click="$emit('click')" :class="active ? 'active':''">
        <slot></slot>
    </div>
</template>

<script>
    export default {
        name: "OaTag",
        props: {
            active: {
                type: Boolean,
                default: false
            }
        }
    }
</script>

<style scoped lang="less">
    .oa-tag {
        background: #e8e8e8;
        height: 30px;
        margin: 10px 8px;
        text-align: center;
        line-height: 30px;
        padding: 4px 10px;
        border-radius: 5px;
        width: 60px;
        color: #999999;
        &.active {
            background: lighten(#44bdf1, 30%);
            color: #3283fa;
        }
    }
</style>